<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="客户编码" prop="GWEB002">
                <!--<el-select v-model="form.GWEB002" size="small" placeholder="请选择客户编码" @change="change">
                    <el-option v-for="item in selectOptions.options1"
                               :key="item.GWAK001"
                               :label="item.GWAK001 + item.GWAKL003"
                               :value="item.GWAK001">
                    </el-option>
                </el-select>-->
                <el-input v-model="form.GWEB002" readonly clearable @clear="clearGweb002">
                    <i class="el-icon-search el-input__icon" @click="openKh" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="客户名称">
                <el-input v-model="form.GWEB003" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="品号" prop="GWEB004">
                <el-input v-model="form.GWEB004" readOnly clearable @clear="clearGweb004">
                    <i class="el-icon-search el-input__icon" @click="openGWEB004" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="品名">
                <el-input v-model="form.GWEB005" readOnly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="规格">
                <el-input v-model="form.GWEB006" readOnly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="客户零件号" prop="GWEB007">
                <el-input v-model="form.GWEB007"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="客户零件名">
                <el-input v-model="form.GWEB008"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="客户规格">
                <el-input v-model="form.GWEB009"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="备注">
                <el-input type="textarea" v-model="form.GWEB010"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="有效否" prop="GWEB011">
                <el-select v-model="form.GWEB011" clearable>
                    <el-option v-for="item in selectOptions.sys_y_n" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="所属法人" prop="GWEBPLANT">
                <el-select v-model="form.GWEBPLANT" size="small" placeholder="请选择所属法人" clearable>
                    <el-option v-for="item in selectOptions.options2"
                               :key="item.ID"
                               :label="item.NAME"
                               :value="item.ID">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwei002_edit"], $.noop);
</script>